<template>
    <div>
        <iframe class="iframe" :src="src" frameborder="0"></iframe>
    </div>
</template>

<script>
    export default {
        created(){
            console.log(this.$route);
        },
        computed:{
            src(){
                console.log(this.$route.name);
                return this.$route.name
            }
        }
    }
</script>

<style lang="scss" scoped>
.iframe{
    width: 100%;
    height: 100%;
}
</style>